/*  1:   */ package com.atomikos.icatch.admin.imp;
/*  2:   */ 
/*  3:   */ import com.atomikos.icatch.HeuristicMessage;
/*  4:   */ import javax.swing.table.AbstractTableModel;
/*  5:   */ 
/*  6:   */ class MessageTableModel
/*  7:   */   extends AbstractTableModel
/*  8:   */ {
/*  9:   */   private HeuristicMessage[] data_;
/* 10:   */   
/* 11:   */   MessageTableModel(HeuristicMessage[] data)
/* 12:   */   {
/* 13:45 */     this.data_ = data;
/* 14:   */   }
/* 15:   */   
/* 16:   */   public int getRowCount()
/* 17:   */   {
/* 18:50 */     return this.data_.length;
/* 19:   */   }
/* 20:   */   
/* 21:   */   public int getColumnCount()
/* 22:   */   {
/* 23:55 */     return 1;
/* 24:   */   }
/* 25:   */   
/* 26:   */   public Object getValueAt(int row, int column)
/* 27:   */   {
/* 28:60 */     HeuristicMessage msg = this.data_[row];
/* 29:61 */     if (column == 0) {
/* 30:62 */       return msg.toString();
/* 31:   */     }
/* 32:64 */     throw new RuntimeException("Invalid column");
/* 33:   */   }
/* 34:   */   
/* 35:   */   public String getColumnName(int col)
/* 36:   */   {
/* 37:69 */     if (col == 0) {
/* 38:70 */       return "Descriptions";
/* 39:   */     }
/* 40:72 */     return "unknown";
/* 41:   */   }
/* 42:   */   
/* 43:   */   public boolean isCellEditable(int row, int col)
/* 44:   */   {
/* 45:77 */     return false;
/* 46:   */   }
/* 47:   */   
/* 48:   */   public void rowDeleted(int row)
/* 49:   */   {
/* 50:82 */     fireTableRowsDeleted(row, row);
/* 51:   */   }
/* 52:   */   
/* 53:   */   public void refresh()
/* 54:   */   {
/* 55:87 */     fireTableRowsUpdated(0, this.data_.length);
/* 56:   */   }
/* 57:   */ }


/* Location:           C:\myfile\mysoft\apache-maven-3.5.0-bin\apache-maven-3.5.0\myrep\com\atomikos\transactions\3.7.0\transactions-3.7.0.jar
 * Qualified Name:     com.atomikos.icatch.admin.imp.MessageTableModel
 * JD-Core Version:    0.7.0.1
 */